package com.victualler.product.employee.service;

import com.victualler.core.base.service.BaseService;
import com.victualler.product.employee.dto.EmployeeInfoDto;
import com.victualler.product.employee.entity.EmployeeDao;
import com.victualler.product.employee.repository.EmployeeQueryRepository;
import com.victualler.product.employee.repository.EmployeeRepository;


/**
 * @author: Guoshichang
 * @discription:
 */
public interface EmployeeService extends BaseService<EmployeeDao, EmployeeRepository,EmployeeQueryRepository>{

    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param id 员工全部信息
     * @Function 根据id获取所有信息
     */
    public EmployeeInfoDto findInfoDto(Long id);

    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param employeeInfoDto 员工全部信息
     * @Function 保存员工大对象
     */
    public void saveInfo(EmployeeInfoDto employeeInfoDto);

    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param id 员工id
     * @param loginAccount 登陆账号
     * @Function 绑定员工账号
     */
    public void bindAccountNo(Long id,String loginAccount);

    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param loginAccount 登陆账号
     * @Function 根据账号获取对应员工
     */
    public EmployeeDao getByLoginAccount(String loginAccount);
}
